package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Employee;

import java.util.List;

/**
 * @author: Liu
 * @date: 2022/02/26
 * @time: 14:57
 */
public interface CategoryService extends IService<Category> {

    R<String> add(Category category);

    R<Page<Category>> page(Long page, Long pageSize);

    R<String> delete(Long id);

    R<String> update(Category category);

    R<List<Category>> list(Integer type);

}
